<?php 
if(!empty($_GET[nname])){
	$nname=intval($_GET[nname]);
}else {
	back("参数不全!");
}
$title='';
$table='bl_dzgg';
require_once("include/conn.php");
require_once("include/config.php");
require_once("include/page.php");
if($nname=='9'){	
	$title="任务指标";			
}else if($nname=='1'){
	$title="简介";	
	$sql="select id,title from `bl_bzjj` ";
	$cn   =   mysql_db_query($db_name,$sql);
}
else if($nname=='10'){
	$title="学习天地";	
	$sql="select  *  from `bl_bume` where parentid='10' ";
	$cn   =   mysql_db_query($db_name,$sql);
}else if($nname=='tubiao'){
	$title="生产任务分析图表";	
	$sql="select  *  from `bl_bume` where parentid='9' ";
	$cn   =   mysql_db_query($db_name,$sql);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title ?></title>
</head>
<STYLE type=text/css>
BODY {
	FONT-SIZE: 9pt
}
.lan_mu {
	font-size: 16px;
	background-image: url(images/fenlan.jpg);
	background-position: 0px 0px;
	background-attachment: fixed;
	background-repeat: no-repeat;
}
TABLE {
	FONT-SIZE: 9pt
}
</STYLE>
<body>
 <?php include("include/top.php"); ?>	
 <?php 
 if($nname=='9'){
 ?>
		<TABLE width=779 border=0 align="center" cellPadding=0 
cellSpacing=0 borderColor=#111111 id=AutoNumber1 style="BORDER-COLLAPSE: collapse">
  <TBODY> 

	  <TR height="18">
    <TD>
	</TD>
    </TR> 
  <TR>
    <TD class="lan_mu" height="35">
	<img src="images/spacer.gif" height="1" width="80" />     
      <FONT color=#000000>
	  <B style="FONT-SIZE: 16pt">
	  <?php echo $title; ?>
	  </B><img src="images/spacer.gif" height="1" width="400" />	  </FONT>	  </TD>
    </TR>    
	  <TR>
    <TD>
      <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#336699 height=25 
      cellSpacing=2 cellPadding=2 width=100% border=1>
        <TBODY>
		<TR>
          <TD height=10 ></TD>
          </TR>
        <TR bgColor=#cccccc>
          <TD height=25 bgColor=#e8e8e8>
		 <?php echo "<a href='scrkshow.php?title=".$danyear."&type=gaikuang' target='_blank'>". $danyear ."年月度概况表</a>";?></TD>
          </TR>
		  <TR>
          <TD height=10 ></TD>
          </TR>
        <TR bgColor=#cccccc>
          <TD height=25 bgColor=#e8e8e8>
		  <?php echo "<a href='show_rkxx.php?title=$danyear&type=rili' target='_blank'>".$danyear."年生产任务日历报表</a>";?>	</TD>
          </TR><TR>
          <TD height=10 ></TD>
          </TR>
        <TR bgColor=#cccccc>
          <TD height=25 bgColor=#e8e8e8>
		  <?php echo "<a href='fen_lan.php?title=$danyear&nname=tubiao' target='_blank'>".$danyear."年生产任务分析图表</a>";?></TD>
          </TR>
		  </TBODY>
		  </TABLE>
	    </TD></TR>
		  <TR><TD height="18">
     	</TD></TR></TBODY></TABLE>
		<?php 
		}else if($nname=='1'){		
		?>
		<TABLE width=779 border=0 align="center" cellPadding=0 cellSpacing=0 borderColor=#111111 id=AutoNumber1 style="BORDER-COLLAPSE: collapse">
  <TBODY> 
	  <TR height="18">
    <TD>
	</TD>
    </TR> 
  <TR>
    <TD class="lan_mu" height="35">
	<img src="images/spacer.gif" height="1" width="80" />     
      <FONT color=#000000>
	  <B style="FONT-SIZE: 16pt">
	  <?php echo $title; ?>
	  </B><img src="images/spacer.gif" height="1" width="400" /></FONT></TD>
    </TR>    
	  <TR>
    <TD>
      <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#336699 height=25 cellSpacing=2 cellPadding=2 width=100% border=1>
        <TBODY>
		<?php 
		while($row = mysql_fetch_array($cn)){			
		?>
		<TR>
          <TD height=10 ></TD>
          </TR>
        <TR bgColor=#cccccc>
          <TD height=25 bgColor=#e8e8e8>
		  <a href='danshow.php?id=<?php echo $row[id] ?>' target='_blank'><?php echo $row[title] ?></a></TD>
          </TR>
		  <?php }?>
		  </TBODY>
		  </TABLE>
	    </TD></TR>
		  <TR><TD height="18">
     	</TD></TR></TBODY></TABLE>
		<?php
		}else if($nname=='10'){			
	while($row = mysql_fetch_array($cn)){	
	$sql1="select id,buname from `bl_bume` where parentid='".$row[id]."' ";	
    $cn1   =   mysql_db_query($db_name,$sql1);
  ?>   
  <TABLE width=779 border=0 align="center" cellPadding=0 cellSpacing=0 borderColor=#111111 id=AutoNumber1 style="BORDER-COLLAPSE: collapse">
  <TBODY>  
	  <TR height="18">
    <TD>
	</TD>
    </TR> 
  <TR>
    <TD class="lan_mu" height="35">
	<img src="images/spacer.gif" height="1" width="80" />     
      <FONT color=#000000>
	  <B style="FONT-SIZE: 16pt">
	  <?php  echo $row[buname];	  ?>	  
	  </B><img src="images/spacer.gif" height="1" width="400" /></FONT></TD>
    </TR>    
	  <TR>
    <TD>
      <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#336699 height=25 cellSpacing=2 cellPadding=2 width=100% border=1>
        <TBODY>
		<?php 
		while($row1 = mysql_fetch_array($cn1)){			
			$sqldetail="select id,title,tdate,author from `bl_dzgg` where buid='".$row1[id]."' order by tdate desc  limit 5 ";	
			$cndetail   =   mysql_db_query($db_name,$sqldetail);
		?>
		<TR>
          <TD height=10 ></TD><TD height=10 ></TD><TD height=10 ></TD>
          </TR>
        <TR bgColor=#cccccc>
          <TD height=25 bgColor=#e8e8e8 colspan=3><img  src="eWebEditor/sharefile/image/forward_48.jpg" border="0"  height="23" width="25"/>
          <a href="show_xxtd.php?nname=<?php echo $row1[id] ?>" target="_blank" >
		  <?php echo $row1[buname] ?></a>		  
		  </TD>
          </TR>
		  <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#336699 height=25 cellSpacing=0 cellPadding=2 width=100% border=1>
        <TBODY>
        <TR bgColor=#cccccc>
          <TD width=43 bgColor=#e8e8e8 height=25>序号</TD>
          <TD width=455 bgColor=#e8e8e8>标题</TD>
          <TD width=131 bgColor=#e8e8e8>修改日期</TD>
		 	 <?php
 			 $i=1;
			 if($nums = mysql_num_rows($cndetail)){
			while($rowdetail = mysql_fetch_array($cndetail)){			 
		?> </TR>
          <TR>
           <TD height=12>&nbsp;<?php echo $i ?></TD>
          <TD height=26 >
          <a href="detailshow.php?id=<?php echo $rowdetail["id"] ?>" target="_blank" title='标题：<?php echo $rowdetail[title] ?>&#13;&#10;发布单位：
          <?php echo $rowdetail["author"] ?> &#13;&#10;发布日期：<?php echo $rowdetail[tdate] ?>'><?php echo $rowdetail[title] ?></a>&nbsp; 
          <img src="images/spacer.gif" height="1" width="200" />          
          </TD>         
          <TD  height=12>&nbsp;<?php echo $rowdetail[tdate] ?></TD>
          </TR>
		  <?php 
		  $i++;
				}
			}
			else{
			?>
			</TR>
          <TR>
           <TD height=12>&nbsp;</TD>
          <TD height=26 >&nbsp; 当前没有数据<img src="images/spacer.gif" height="1" width="200" />         
          </TD>         
          <TD  height=12>&nbsp;</TD>
          </TR>	<?php	
					}
				}
		  }?>
		  </TBODY>
		  </TABLE>
	    </TD></TR>
		  <TR><TD height="18">
     	</TD></TR></TBODY></TABLE>		
		 <?php 
 		}else if($nname=='tubiao'){
 			while($row = mysql_fetch_array($cn)){	
				$sql1="select id,buname from `bl_bume` where parentid='".$row[id]."' ";	
			    $cn1   =   mysql_db_query($db_name,$sql1);
			  ?>   
<TABLE width=779 border=0 align="center" cellPadding=0 cellSpacing=0 borderColor=#111111 id=AutoNumber1 style="BORDER-COLLAPSE: collapse">
  <TBODY>  
	  <TR height="18"><TD></TD></TR> 
  <TR>
    <TD class="lan_mu" height="35"><img src="images/spacer.gif" height="1" width="80" /><FONT color=#000000>
	  <B style="FONT-SIZE: 16pt">
	  <?php echo $row[buname]; ?>	  
	  </B><img src="images/spacer.gif" height="1" width="400" /></FONT></TD>
    </TR>    
	  <TR>
    <TD>
      <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#336699 height=25 cellSpacing=2 cellPadding=2 width=100% border=1>
        <TBODY>
		<?php 
		while($row1 = mysql_fetch_array($cn1)){			
			$sqldetail="select id,title,tdate,author from `bl_dzgg` where buid='".$row1[id]."' order by tdate desc  limit 5 ";	
			$cndetail   =   mysql_db_query($db_name,$sqldetail);
		?>
		<TR>
          <TD height=10 ></TD><TD height=10 ></TD><TD height=10 ></TD>
          </TR>
        <TR bgColor=#cccccc>
          <TD height=25 bgColor=#e8e8e8 colspan=3>
          <a href="show_xxtd.php?nname=<?php echo $row1[id] ?>" target="_blank" >
		  <?php echo $row1[buname] ?></a>		  
		  </TD>
          </TR>
		  <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#336699 height=25 cellSpacing=0 cellPadding=2 width=100% border=1>
        <TBODY>
        <TR bgColor=#cccccc>
          <TD width=43 bgColor=#e8e8e8 height=25>序号</TD>
          <TD width=455 bgColor=#e8e8e8>标题</TD>
          <TD width=131 bgColor=#e8e8e8>修改日期</TD>
		 	 <?php
 			 $i=1;
			 if($nums = mysql_num_rows($cndetail)){
			while($rowdetail = mysql_fetch_array($cndetail)){			 
		?> </TR>
          <TR>
           <TD height=12>&nbsp;<?php echo $i ?></TD>
          <TD height=26 >
          <a href="detailshow.php?id=<?php echo $rowdetail[id] ?>" target="_blank" title='标题：<?php echo $rowdetail[title] ?>&#13;&#10;
          发布单位：<?php echo $rowdetail[author] ?> &#13;&#10;发布日期：<?php echo $rowdetail[tdate] ?>'><?php echo $rowdetail[title] ?></a>&nbsp; 
          <img src="images/spacer.gif" height="1" width="200" />          
          </TD>         
          <TD  height=12>&nbsp;<?php echo $rowdetail[tdate] ?></TD>
          </TR>
		  <?php 
		  $i++;
				}
			}
			else{
			?>
		</TR>
          <TR>
           <TD height=12>&nbsp;</TD>
          <TD height=26 >&nbsp; 当前没有数据<img src="images/spacer.gif" height="1" width="200" />          
          </TD>         
          <TD  height=12>&nbsp;</TD>
          </TR>	<?php	
					}
				}
		  }?>
		  </TBODY>
		  </TABLE>
	    </TD></TR>
		  <TR><TD height="18">
     	</TD></TR></TBODY></TABLE>
	<?php  		
	}else{
		self("参数不全!","index.php");
	}
	 include("include/bot.php"); ?>
</body>
</html>
